package com.weixinli.biz.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.weixinli.beans.FmArticle;
import com.weixinli.beans.PageInfo;
import com.weixinli.biz.IFmArticleBiz;
import com.weixinli.dao.IFmArticleDao;
import com.weixinli.utils.PageUtil;
@Service("ifmArticleBiz")
public  class FmArticleBizImpl implements IFmArticleBiz{
	private IFmArticleDao iFmArticleDao;
	
	public List<FmArticle> findAll(PageInfo pageInfo) {
		return iFmArticleDao.findAll(pageInfo);
	}
	
	public FmArticle change(FmArticle fm) {
		return iFmArticleDao.change(fm);
	}
	
	public int addFmArticle(FmArticle at) {
		return iFmArticleDao.addFmArticle(at);
	}

	public FmArticle selectFid(FmArticle fm) {
		return iFmArticleDao.selectFid(fm);
	}
	
	public int insertAduio(FmArticle fm) {
		return iFmArticleDao.insertAduio(fm);
	}
	
	public int delFmArticle(FmArticle fm) {
		return iFmArticleDao.delFmArticle(fm);
	}

	public FmArticle getDatesArticle() {
		return iFmArticleDao.getDatesArticle();
	}
	
	public List<FmArticle> Newest() {
		return iFmArticleDao.Newest();
	}
	
	public List<FmArticle> findArticle(String searchContent) {
		return iFmArticleDao.findArticle(searchContent);
	}
	
	public List<FmArticle> findArticleIndex() {
		return iFmArticleDao.findArticleIndex();
	}
	public int modFmArticle(FmArticle at) {
		return 0;
	}

	public int getTotalFmArticle() {
		return 0;
	}

	public List<FmArticle> Hottest() {
		return null;
	}

	public List<FmArticle> findHottest() {
		return null;
	}

	public List<FmArticle> typeArticle(FmArticle fm) {
		return iFmArticleDao.typeArticle(fm);
	}

	public int addGood(int uid, String fid) {
		return 0;
	}

	public int addUserGood(int uid) {
		return 0;
	}

	public List<FmArticle> findUserGood(int uid) {
		return null;
	}

	public List<FmArticle> findDim(String str1, String str2) {
		return null;
	}

	public List<FmArticle> findDims(String str) {
		return null;
	}
	@Resource(name="iFmArticleDao")
	public void setiFmArticleDao(IFmArticleDao iFmArticleDao) {
		this.iFmArticleDao = iFmArticleDao;
	}
}
